/*
 * @Descripttion:
 * @version:
 * @Author: ZmSama
 * @Date: 2022-01-11 10:06:45
 */
// 使用 Mock
import Mock from "mockjs";

export default Mock.mock("/postdata1", {
  "list|1000": [
    {
      id: "@guid",
      title: "SO@natural(1, 1000)-@natural(1, 100)",
      orderNum: "@natural(1, 10000)",
      toggle: false,
      isLeaf: false,
      tags: [
        {
          id: "@guid",
          offset: "@natural(1, 10)",
          width: "@natural(1, 15)",
          orderNum: "@natural(1, 10000)",
          color: "@color",
        },
        {
          id: "@guid",
          offset: "@natural(1, 10)",
          width: "@natural(1, 15)",
          orderNum: "@natural(1, 10000)",
          color: "@color",
        },
        {
          id: "@guid",
          offset: "@natural(1, 10)",
          width: "@natural(1, 15)",
          orderNum: "@natural(1, 10000)",
          color: "@color",
        },
      ],
      children: [
        {
          id: "@guid",
          title: "JH-@natural(1, 10000)",
          orderNum: "@natural(1, 10000)",
          isLeaf: true,
          tags: [
            {
              id: "@guid",
              offset: "@natural(1, 10)",
              width: "@natural(1, 15)",
              orderNum: "@natural(1, 10000)",
              color: "@color",
            },
            {
              id: "@guid",
              offset: "@natural(1, 10)",
              width: "@natural(1, 15)",
              orderNum: "@natural(1, 10000)",
              color: "@color",
            },
            {
              id: "@guid",
              offset: "@natural(1, 10)",
              width: "@natural(1, 15)",
              color: "@color",
              orderNum: "@natural(1, 10000)",
            },
          ],
        },
        {
          id: "@guid",
          title: "JH-@natural(1, 10000)",
          orderNum: "@natural(1, 10000)",
          isLeaf: true,
          tags: [
            {
              id: "@guid",
              offset: "@natural(1, 10)",
              width: "@natural(1, 15)",
              orderNum: "@natural(1, 10000)",
              color: "@color",
            },
            {
              id: "@guid",
              offset: "@natural(1, 10)",
              width: "@natural(1, 15)",
              orderNum: "@natural(1, 10000)",
              color: "@color",
            },
            {
              id: "@guid",
              offset: "@natural(1, 10)",
              width: "@natural(1, 15)",
              orderNum: "@natural(1, 10000)",
              color: "@color",
            },
          ],
        },
      ],
    },
  ],
});
